public class FractionSum {
    public static void main(String[] args) {

        int i = 0;
        double sum = 0.0;

        for (i = 1; i <= 100; i++) {
            sum += 1.0 / i;
            sum = -sum;
        }

        System.out.println(sum);
    }
}
